\usepackage{listings}	
	\lstset{	basicstyle		=\footnotesize,
			 breaklines,
			 numbers		=left,
			 language		=Java,
			 commentstyle	=\textit{ \color{gray}},
			 keywordstyle	=\color{blue},
			 identifierstyle	=\texttt{ \color{black}},
			 breaklines	=true,
			 frame		=tlrb,
			 frameround	=rrrr,
			 tabsize		=2%  
			}

%BUGFIX Listings 1.4 in combination with KOMA			
\makeatletter
\@ifundefined{float@listhead}{}{%
    \renewcommand*{\lstlistoflistings}{%
        \begingroup
    	    \if@twocolumn
                \@restonecoltrue\onecolumn
            \else
                \@restonecolfalse
            \fi
            \float@listhead{\lstlistlistingname}%
            \setlength{\parskip}{\z@}%
            \setlength{\parindent}{\z@}%
            \setlength{\parfillskip}{\z@ \@plus 1fil}%
            \@starttoc{lol}%
            \if@restonecol\twocolumn\fi
        \endgroup
    }%
}
\makeatother
